package com.cc.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 获取非yaml文件配置
 *
 * @author cc
 * @Since 2023/4/11
 * @Time 19:41
 * @Description 读取生成文件地址配置
 */
@Configuration
@PropertySource("classpath:buildPackagePath.properties")
@ConfigurationProperties
@Data
public class PackagePathConfiguration {
  //包前缀
  @Value("${project.prefix}")
  private String packagePrefix;

  @Value("${db.path}")
  private String dbPath;
  @Value("${do.path}")
  private String doPath;
  @Value("${vo.path}")
  private String voPath;
  @Value("${dto.path}")
  private String dtoPath;
  @Value("${inter.path}")
  private String interPath;
  @Value("${dao.path}")
  private String daoPath;
  @Value("${daoimpl.path}")
  private String daoimplPath;
  @Value("${service.path}")
  private String servicePath;
  @Value("${controller.path}")
  private String controllerPath;

  @Value("${dbisLastLayer}")
  private boolean dbisLastLayer;
  @Value("${doisLastLayer}")
  private boolean doisLastLayer;
  @Value("${voisLastLayer}")
  private boolean voisLastLayer;
  @Value("${dtoisLastLayer}")
  private boolean dtoisLastLayer;
  @Value("${interisLastLayer}")
  private boolean interisLastLayer;
  @Value("${daoisLastLayer}")
  private boolean daoisLastLayer;
  @Value("${daoimplisLastLayer}")
  private boolean daoimplisLastLayer;
  @Value("${serviceisLastLayer}")
  private boolean serviceisLastLayer;
  @Value("${controllerisLastLayer}")
  private boolean controllerisLastLayer;
}
